import 'package:dailypayagent/model/merchantcount.dart';
import 'package:dailypayagent/provider/view_state_refresh_list_model.dart';
import 'package:dailypayagent/service/wan_android_repository.dart';

class MerchantCountModel extends ViewStateRefreshListModel<MerchantCountList> {
  Merchantcount merchantcount;
  @override
  Future<List<MerchantCountList>> loadData({int pageNum}) async {
    setBusy();
    merchantcount = await WanAndroidRepository.fetchMerchantCount();
    setIdle();
    return merchantcount.merchantStatsList;
  }
}
